def triangle(count):
    """
        打印三角形
    :param count:
    :return:
    """
    for r in range(count):
        for c in range(r + 1):
            print('#', end='')
        print()


triangle(5)

